<?php defined('InShopNC') or exit('Access Invalid!');?>
<div class="tabmenu">
  <?php include template('layout/submenu');?>
  <a  href="javascript:void(0)" class="ncbtn ncbtn-mint" nc_type="dialog" dialog_title="发放门票" dialog_id="my_piao" dialog_width="480" uri="index.php?act=store_piao&op=add" title="发放门票">发放门票</a> </div>
<form method="get" action="index.php">
    <table class="search-form">
        <input type="hidden" name="act" value="store_piao" />
        <input type="hidden" name="op" value="index" />
        <tr>
            <td>&nbsp;</td>
            <th></th>
            <td class="w160">门票已发放（<?php echo $output['item_count'];?>）张 </td>
            <th></th>
            <td class="w160"></td>
            <th>
            </th>
            <td class="w160"><input type="text" class="text w150" name="keyword" value="<?php echo $_GET['keyword']; ?>"/></td>
            <td class="tc w70"><label class="submit-border">
                    <input type="submit" class="submit" value="<?php echo $lang['nc_search'];?>" />
                </label></td>
        </tr>
    </table>
</form>
<table class="ncsc-default-table">
  <thead>
    <tr><th class="w60"></th>
      <th class="tl">会员编号</th>
      <th class="tl">会员名称</th>
      <th class="w200">手机号码</th>
      <th class="w200">发放时间</th>
      <th class="w100"><?php echo $lang['nc_handle'];?></th>
    </tr>
  </thead>
  <tbody>
    <?php if(!empty($output['item_list']) && is_array($output['item_list'])){?>
    <?php foreach($output['item_list'] as $key => $value){ ?>
    <tr class="bd-line">
    <td></td>
      <td class="tl"><?php echo $value['member_name'];?></td>
      <td class="tl"><?php echo $value['member_truename'];?></td>
      <td><?php echo $value['member_mobile'];?></td>
      <td><?php echo date('Y-m-d H:i:s',$value['piao_time']);?></td>
      <td class="nscs-table-handle">
          <span><!--a href="<?php echo urlShop('store_piao', 'edit', array('member_id' => $value['member_id']));?>" class="btn-bluejeans"><i class="icon-edit"></i>
        <p><?php echo $lang['nc_edit'];?></p></a-->
          </span><span><a nctype="btn_del_account" data-seller-id="<?php echo $value['member_id'];?>" href="javascript:;" class="btn-grapefruit"><i class="icon-trash"></i>
        <p><?php echo $lang['nc_del'];?></p></a></span>
      </td>
    </tr>
    <?php }?>
    <?php }else{?>
    <tr>
      <td colspan="20" class="norecord"><div class="warning-option"><i class="icon-warning-sign"></i><span><?php echo $lang['no_record'];?></span></div></td>
    </tr>
    <?php }?>
  </tbody>
  <tfoot>
    <tr>
      <td colspan="20"><div class="pagination"><?php echo $output['show_page']; ?></div></td>
    </tr>
  </tfoot>
</table>
<form id="del_form" method="post" action="<?php echo urlShop('store_account', 'account_del');?>">
  <input id="del_seller_id" name="seller_id" type="hidden" />
</form>
<script type="text/javascript">
    $(document).ready(function(){
        $('[nctype="btn_del_account"]').on('click', function() {
            var seller_id = $(this).attr('data-seller-id');
          /*  if(confirm('确认删除？')) {
                $('#del_seller_id').val(seller_id);
                ajaxpost('del_form', '', '', 'onerror');
            }*/
        });
    });
</script> 
